<h2>Món Ăn Ngẫu Nhiên</h2>
<?php
$recipes = $this->requestAction("/recipes/get_random_recipes");
?>
<ul>
  <?php if (!empty($recipes)) { foreach ($recipes as $recipe) { ?>
  <?php
    $favorite_count = $this->requestAction("/favorites/get_favorite_count/".$recipe["Recipe"]["id"]);
  ?>
  <li><?php echo $html->link($teefan->displayContent($recipe["Recipe"]["name"]), "/recipes/show/".$recipe["Recipe"]["permalink"]); ?> <?php if ($favorite_count > 0) { ?><span>(<?php echo $favorite_count ?> người thích)</span><?php } ?></li>
  <?php } } ?>
</ul>